#!/usr/bin/python3
# -*- coding: utf-8; tab-width: 4; indent-tabs-mode: t -*-

import sys
import json


id = sys.argv[1]
gatewayList = json.loads(sys.argv[2])
nameServerList = json.loads(sys.argv[3])
ntpServerList = json.loads(sys.argv[4])
winsServerList = json.loads(sys.argv[5])
httpProxyList = json.loads(sys.argv[6])
socks5ProxyList = json.loads(sys.argv[7])


"""
Calculate from the above data, the above data should contain change information (added, changed, removed)
Returns global network data, example:
{
    "route": {
        "inet": [
            [ DEST, NEXTHOP-LIST, DEV, TYPE ],
            [ DEST, NEXTHOP-LIST, DEV, TYPE ],
            ...
        ],
        "inet6": [
            [ DEST, NEXTHOP-LIST, DEV, TYPE ],
            [ DEST, NEXTHOP-LIST, DEV, TYPE ],
            ...
        ],
    }
    "nameserver": [
        [ DOMAIN ],                                                 # means this domain is not resolvable
        [ DOMAIN, INTERFACE, PROTOCOL, AF-IP:PORT-LIST,  ],
        [ ".", INTERFACE, PROTOCOL, AF-IP:PORT-LIST ],
    ]
    "ntp-server": [
        [ INTERFACE, AF-IP ],
        [ INTERFACE, AF-IP ],
    ],
    "wins-server": [
        [ INTERFACE, AF-IP ],
        [ INTERFACE, AF-IP ],
    ],
    "http-proxy": [
        [ DOMAIN ],                                                 # means this domain is not resolvable
        [ DOMAIN, INTERFACE, URL ],
    ]
    "socks-proxy": [
        XXX,
    ],
}

  no need to select privnet, they must be conflict free.
  no need to select subnet, they must be conflict free.
"""
